package org.tarena.dang.service;

import java.sql.SQLException;
import java.util.List;

import org.tarena.dang.entity.CartItem;
import org.tarena.dang.entity.UserAdress;

public interface OrderService {

	boolean insertAdd(int id, UserAdress adress) throws SQLException;

	int saveItems(int id, CartItem c)throws SQLException;

	int saveOrder(int id, UserAdress address, double count, int waitPay,
			long currentTimeMillis)throws SQLException;

	List<UserAdress> getAddress(int id)throws SQLException;

	UserAdress getAddById(int addId)throws SQLException;

}
